# -*- coding: utf-8 -*-
"""
conftest.py
2025/8/29
@author: minghui
"""

import pytest
from utils.driver_factory import init_driver

# 第二版本
# @pytest.fixture(scope="function", params=["chrome", "safari","firefox"])
@pytest.fixture(scope="function", params=["chrome"])
def wms_driver(request):
    '''
    func: 初始化浏览器,目前上面仅使用Chrome
    :param request:
    :return:
    '''
    drv = init_driver(browser=request.param, headless=False)
    yield drv
    drv.quit()